package me.militch.quickcore.core;

import android.app.Activity;
import android.app.Application;
import android.os.Bundle;

import me.militch.quickcore.core.impl.AppTarget;
import me.militch.quickcore.di.component.AppComponent;
import me.militch.quickcore.di.component.IComponent;
import me.militch.quickcore.di.module.ActivityModule;
import me.militch.quickcore.di.module.GlobalConfigModule;
import me.militch.quickcore.di.module.HttpConfigModule;

public abstract class BaseApplication extends Application {
    private AppTarget appTarget;
    private static BaseApplication baseApplication;
    @Override
    public void onCreate() {
        super.onCreate();
//        appTarget = AppTarget.create(this);
//        appTarget.onCreate();
        baseApplication = this;
    }
    public AppComponent getAppComponent(){
        return appTarget.getAppComponent();
    }
    public static BaseApplication getBase(){
        return baseApplication;
    }
}
